package com.zjcode.cdcer.service;

import com.chinatechstar.component.commons.supports.PageData;
import com.zjcode.cdcer.model.basic.JsonObj;
import com.zjcode.cdcer.service.fallback.CerTreatmentOfficalInfoServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "zjcode-chronic-disease-cancer-server", fallback = CerTreatmentOfficalInfoServiceFallback.class)
public interface CerTreatmentOfficalInfoService {
    @PostMapping("/cdcerserver/v1/treatmentOffical/insertOfficeInfo")
    JsonObj insertOfficeInfo(@RequestBody PageData pageData);

    @GetMapping("/cdcerserver/v1/treatmentOffical/findById")
    JsonObj findById(@RequestParam String id);

    @PostMapping("/cdcerserver/v1/treatmentOffical/listAllData")
    JsonObj listAllData(@RequestBody PageData pageData);

    @GetMapping("/cdcerserver/v1/treatmentOffical/returnById")
    JsonObj returnById(@RequestParam String id);

    @PostMapping("/cdcerserver/v1/treatmentOffical/queryAllExportData")
    JsonObj queryAllExportData(@RequestBody PageData pageData);

}
